{{ define "admin/manager/index.html" }}
{{template "admin/common/page_header.html"}}
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <header class="card-header"><div class="card-title">管理员管理</div></header>
                <div class="card-body">
                    <h6>管理员列表</h6>
                    <table class="table table-hover table-dark">
                        <thead>
                            <tr class="th">
                                <th>管理员名称</th>
                                <th>管理员电话</th>
                                <th>管理员邮箱</th>
                                <th>管理员角色</th>
                                <th>创建时间</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        {{range $key,$value := .managerList}}
                            <tr>
                                <td>{{$value.Username}}</td>
                                <td>{{$value.Mobile}}</td>
                                <td>{{$value.Email}}</td>
                                <td>{{$value.Role.Title}}</td>
                                <td>{{UnixToTime $value.AddTime}}</td>

                                <td class="text-center">
                                    <a href="/admin/manager/edit?id={{$value.Id}}">修改</a>
                                    <a class="delete" href="/admin/manager/delete?id={{$value.Id}}">删除</a>
                                </td>
                            </tr>
                        {{end}}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

{{end}}